/**
 * <copyright>
 * </copyright>
 *
 * $Id$
 */
package org.hl7.v3;

import java.util.Arrays;
import java.util.Collections;
import java.util.List;

import org.eclipse.emf.common.util.Enumerator;

/**
 * <!-- begin-user-doc -->
 * A representation of the literals of the enumeration '<em><b>Physical Medicineand Rehabilitation Provider Codes</b></em>',
 * and utility methods for working with them.
 * <!-- end-user-doc -->
 * <!-- begin-model-doc -->
 * specDomain: S20223 (C-0-T19465-S20096-S20223-cpt)
 * <!-- end-model-doc -->
 * @see org.hl7.v3.V3Package#getPhysicalMedicineandRehabilitationProviderCodes()
 * @model extendedMetaData="name='PhysicalMedicineandRehabilitationProviderCodes'"
 * @generated
 */
public enum PhysicalMedicineandRehabilitationProviderCodes implements Enumerator {
	/**
	 * The '<em><b>208100000X</b></em>' literal object.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @see #_208100000X_VALUE
	 * @generated
	 * @ordered
	 */
	_208100000X(0, "_208100000X", "208100000X"),

	/**
	 * The '<em><b>2081P2900X</b></em>' literal object.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @see #_2081P2900X_VALUE
	 * @generated
	 * @ordered
	 */
	_2081P2900X(1, "_2081P2900X", "2081P2900X"),

	/**
	 * The '<em><b>2081P0010X</b></em>' literal object.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @see #_2081P0010X_VALUE
	 * @generated
	 * @ordered
	 */
	_2081P0010X(2, "_2081P0010X", "2081P0010X"),

	/**
	 * The '<em><b>2081P0004X</b></em>' literal object.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @see #_2081P0004X_VALUE
	 * @generated
	 * @ordered
	 */
	_2081P0004X(3, "_2081P0004X", "2081P0004X"),

	/**
	 * The '<em><b>2081S0010X</b></em>' literal object.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @see #_2081S0010X_VALUE
	 * @generated
	 * @ordered
	 */
	_2081S0010X(4, "_2081S0010X", "2081S0010X");

	/**
	 * The '<em><b>208100000X</b></em>' literal value.
	 * <!-- begin-user-doc -->
	 * <p>
	 * If the meaning of '<em><b>208100000X</b></em>' literal object isn't clear,
	 * there really should be more of a description here...
	 * </p>
	 * <!-- end-user-doc -->
	 * @see #_208100000X
	 * @model literal="208100000X"
	 * @generated
	 * @ordered
	 */
	public static final int _208100000X_VALUE = 0;

	/**
	 * The '<em><b>2081P2900X</b></em>' literal value.
	 * <!-- begin-user-doc -->
	 * <p>
	 * If the meaning of '<em><b>2081P2900X</b></em>' literal object isn't clear,
	 * there really should be more of a description here...
	 * </p>
	 * <!-- end-user-doc -->
	 * @see #_2081P2900X
	 * @model literal="2081P2900X"
	 * @generated
	 * @ordered
	 */
	public static final int _2081P2900X_VALUE = 1;

	/**
	 * The '<em><b>2081P0010X</b></em>' literal value.
	 * <!-- begin-user-doc -->
	 * <p>
	 * If the meaning of '<em><b>2081P0010X</b></em>' literal object isn't clear,
	 * there really should be more of a description here...
	 * </p>
	 * <!-- end-user-doc -->
	 * @see #_2081P0010X
	 * @model literal="2081P0010X"
	 * @generated
	 * @ordered
	 */
	public static final int _2081P0010X_VALUE = 2;

	/**
	 * The '<em><b>2081P0004X</b></em>' literal value.
	 * <!-- begin-user-doc -->
	 * <p>
	 * If the meaning of '<em><b>2081P0004X</b></em>' literal object isn't clear,
	 * there really should be more of a description here...
	 * </p>
	 * <!-- end-user-doc -->
	 * @see #_2081P0004X
	 * @model literal="2081P0004X"
	 * @generated
	 * @ordered
	 */
	public static final int _2081P0004X_VALUE = 3;

	/**
	 * The '<em><b>2081S0010X</b></em>' literal value.
	 * <!-- begin-user-doc -->
	 * <p>
	 * If the meaning of '<em><b>2081S0010X</b></em>' literal object isn't clear,
	 * there really should be more of a description here...
	 * </p>
	 * <!-- end-user-doc -->
	 * @see #_2081S0010X
	 * @model literal="2081S0010X"
	 * @generated
	 * @ordered
	 */
	public static final int _2081S0010X_VALUE = 4;

	/**
	 * An array of all the '<em><b>Physical Medicineand Rehabilitation Provider Codes</b></em>' enumerators.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	private static final PhysicalMedicineandRehabilitationProviderCodes[] VALUES_ARRAY =
		new PhysicalMedicineandRehabilitationProviderCodes[] {
			_208100000X,
			_2081P2900X,
			_2081P0010X,
			_2081P0004X,
			_2081S0010X,
		};

	/**
	 * A public read-only list of all the '<em><b>Physical Medicineand Rehabilitation Provider Codes</b></em>' enumerators.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public static final List<PhysicalMedicineandRehabilitationProviderCodes> VALUES = Collections.unmodifiableList(Arrays.asList(VALUES_ARRAY));

	/**
	 * Returns the '<em><b>Physical Medicineand Rehabilitation Provider Codes</b></em>' literal with the specified literal value.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public static PhysicalMedicineandRehabilitationProviderCodes get(String literal) {
		for (int i = 0; i < VALUES_ARRAY.length; ++i) {
			PhysicalMedicineandRehabilitationProviderCodes result = VALUES_ARRAY[i];
			if (result.toString().equals(literal)) {
				return result;
			}
		}
		return null;
	}

	/**
	 * Returns the '<em><b>Physical Medicineand Rehabilitation Provider Codes</b></em>' literal with the specified name.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public static PhysicalMedicineandRehabilitationProviderCodes getByName(String name) {
		for (int i = 0; i < VALUES_ARRAY.length; ++i) {
			PhysicalMedicineandRehabilitationProviderCodes result = VALUES_ARRAY[i];
			if (result.getName().equals(name)) {
				return result;
			}
		}
		return null;
	}

	/**
	 * Returns the '<em><b>Physical Medicineand Rehabilitation Provider Codes</b></em>' literal with the specified integer value.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public static PhysicalMedicineandRehabilitationProviderCodes get(int value) {
		switch (value) {
			case _208100000X_VALUE: return _208100000X;
			case _2081P2900X_VALUE: return _2081P2900X;
			case _2081P0010X_VALUE: return _2081P0010X;
			case _2081P0004X_VALUE: return _2081P0004X;
			case _2081S0010X_VALUE: return _2081S0010X;
		}
		return null;
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	private final int value;

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	private final String name;

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	private final String literal;

	/**
	 * Only this class can construct instances.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	private PhysicalMedicineandRehabilitationProviderCodes(int value, String name, String literal) {
		this.value = value;
		this.name = name;
		this.literal = literal;
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public int getValue() {
	  return value;
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public String getName() {
	  return name;
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public String getLiteral() {
	  return literal;
	}

	/**
	 * Returns the literal value of the enumerator, which is its string representation.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	@Override
	public String toString() {
		return literal;
	}
	
} //PhysicalMedicineandRehabilitationProviderCodes
